package service;

import model.User;
import java.util.*;

public interface UserManager {
	// 增加用户
	int addUser(String user, String pass, String identity,String email,String realName,String gender,String tel,int power) throws Exception;
 
	// 验证用户登录
	int loginValid(String user, String pass) throws Exception;

	// 验证用户名是否可用
	boolean validateName(String name) throws Exception;
	
	//根据用户id查找USer
	User getUser(int id) throws Exception;
	
	//查找所有用户
	List getAllUser() throws Exception; 
}
